///数据分布Model
class Distribution {
  String _xAxis = 'axis';
  String _yAxis = 'yxis';

  String xAxis;
  int yAxis;

  Distribution();

  Map<String, dynamic> toMap() {
    Map<String, dynamic> map = {
      _xAxis: xAxis,
      _yAxis: yAxis,
    };
    return map;
  }

  Distribution.fromMap(Map<String, dynamic> map) {
    xAxis = map[_xAxis];
    yAxis = map[_yAxis];
  }
}
